/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


(function($) {

$.gfMenu = {
  plugin:"gf.menu",
  author:"GF",
  version:"1.0",
  defaults:{
    dir:"y",
    width:'200px',
    shadow:false,
    height:"auto",
    slideTimer:600,
    style:'GFMenu',
    display:'inline-block'
  },
  buildGfMenu: function(options){
    return this.each (function (){
      settings = {};
      $.extend (settings, $.gfMenu.defaults);
      $.extend (settings, options || {});

      $(this).addClass(settings.style).css({width:settings.width,height:settings.height,display:settings.display});
      if (settings.dir == 'x') {
        $('.GFMenuBar > ul > li').css('float', 'left');
      }
      $('.GFMenu').mouseover(function() {
          $(this).css('background-color','red');
      })
    });
  }
};

$.fn.gfMenu=$.gfMenu.buildGfMenu;

})(jQuery);